package com.atlin.project.model.domain;

import lombok.Data;

import java.lang.management.MemoryUsage;

/**
 * 系统参数
 */
@Data
public class SystemInfo {
    private double cpuLoad;
    private MemoryUsage heapMemoryUsage;
    private MemoryUsage nonHeapMemoryUsage;
    private long jvmStartTime;
    private long jvmUptime;
    private long totalDiskSpace;
    private long usedDiskSpace;
    private long freeDiskSpace;

    public SystemInfo(double cpuLoad, MemoryUsage heapMemoryUsage, MemoryUsage nonHeapMemoryUsage, long jvmStartTime, long jvmUptime, long totalDiskSpace, long usedDiskSpace, long freeDiskSpace) {
        this.cpuLoad = cpuLoad;
        this.heapMemoryUsage = heapMemoryUsage;
        this.nonHeapMemoryUsage = nonHeapMemoryUsage;
        this.jvmStartTime = jvmStartTime;
        this.jvmUptime = jvmUptime;
        this.totalDiskSpace = totalDiskSpace;
        this.usedDiskSpace = usedDiskSpace;
        this.freeDiskSpace = freeDiskSpace;
    }

}